<?php
App::import('Helper', 'Members.MembersAppHelper');
class MembersHelper extends MembersAppHelper{
	var $helpers = array('Html', 'Form');
	
	function beforeRender(){
		parent::beforeRender();
		App::import('Component', 'Members.Member');
		$this->Member = new MemberComponent;   
	}
	public function index(){    	
		App::import('Component', 'Members.Member');
		$this->Member = new MemberComponent;    	
    	$members_ = $this->Member->get_all();
    	return $this->View->element('members',array('plugin'=>'members','members_'=>$members_));		
	}
}